package com.life.model.event;

public class EventTypeEnum {
    String eventType = null;
	
    public static EventTypeEnum PLAY_EVENT = new EventTypeEnum("PLAY_EVENT");
    public static EventTypeEnum STOP_EVENT = new EventTypeEnum("STOP_EVENT");
    public static EventTypeEnum RECORD_EVENT = new EventTypeEnum("RECORD_EVENT");
    public static EventTypeEnum SLIDER_EVENT = new EventTypeEnum("SLIDER_EVENT");
    public static EventTypeEnum SPEED_EVENT = new EventTypeEnum("SPEED_EVENT");
    
	private EventTypeEnum(String type)
	{
		eventType = type;
	}
	
	
	public boolean equals(Object rhs)
	{
		if(rhs instanceof EventTypeEnum &&
			((EventTypeEnum)rhs).toString().equals(eventType))
		{
			return true;
		}
		
		return false;
	}
	
	public String toString()
	{
		return eventType;
	}
}
